home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / Term / Extras / Source / gtlayout-source.lha / SMakefile < prev   
Makefile  |  1996-10-20  |  9KB  |  210 lines

  1. ##
  2. ##    GadTools layout toolkit
  3. ##
  4. ##    Copyright © 1993-1996 by Olaf `Olsen' Barthel
  5. ##        Freely distributable.
  6. ##
  7. ##    :ts=8
  8. ##
  9.  
  10. .c.o:
  11.     sc $< $(CFLAGS) cpu=$(CPU)
  12.  
  13. .c.ol:
  14.     sc $< $(CFLAGS) cpu=any define=LINK_LIB objname=$>.ol
  15.  
  16. .a.o:
  17.     asm -D -DCPU_$(CPU) -u $<
  18.  
  19. ###############################################################################
  20.  
  21. VERSION =    36
  22.  
  23. OPTIMIZE =    optimize optschedule optinlocal opttime optdepth=10 optrdepth=10
  24. GSTFILE =    gtlayout.gst
  25.  
  26. CPU =        68030
  27. #CPU =        ANY
  28.  
  29. DEBUG =        debug=line
  30.  
  31. #C_UTILITY =    utillib
  32.  
  33. CFLAGS =    data=faronly streq strmerge nostkchk nover memsize=huge params=r \
  34.         define=CPU_$(CPU) gst=$(GSTFILE) $(DEBUG) $(C_UTILITY) $(OPTIMIZE)
  35. LFLAGS =    smallcode addsym noicons nodebug \
  36.         define __CXM33=__UCXM33 define __CXD33=__UCXD33 \
  37.         define __CXM22=__UCXM22 define __CXD22=__UCXD22
  38.  
  39. LIBS =        lib:scnb.lib lib:amiga.lib
  40.  
  41. all:        $(GSTFILE) gtlayout.library gtlayout.lib
  42.  
  43. ###############################################################################
  44.  
  45. SOURCE =    gtlayout.h gtlayout.i gtlayout_data.c \
  46.         gtlayout_data.h gtlayout_global.h gtlayout_includes.h \
  47.         gtlayout_internal.h gtlayout_lib.c gtlayout_libprotos.h \
  48.         gtlayout_preinclude.c gtlayout_romtag.a LTP_AddGadgets.c \
  49.         LTP_AddHistory.c LTP_AdjustItemPosition.c LTP_AdjustMenuPosition.c \
  50.         LTP_Atol.c LTP_BackFillRoutine.c LTP_BitMap.c \
  51.         LTP_BlinkButton.c LTP_CheckGlyph.c LTP_Clone.c \
  52.         LTP_ConvertNum.c LTP_CorrectItemList.c LTP_CreateExtraObject.c \
  53.         LTP_CreateGadgets.c LTP_CreateMenuTagList.c LTP_CreateMenuTemplate.c \
  54.         LTP_CreateObjectNode.c LTP_DefaultEditRoutine.c LTP_DefaultHistoryHook.c \
  55.         LTP_Delay.c LTP_DeleteObjectNode.c LTP_DetermineSize.c \
  56.         LTP_Draw.c LTP_DrawBackFore.c LTP_DrawBox.c \
  57.         LTP_DrawGauge.c LTP_DrawGroup.c LTP_DrawIncrementer.c \
  58.         LTP_DrawPalette.c LTP_DrawPicker.c LTP_DrawPrevNext.c \
  59.         LTP_DrawTapeButton.c LTP_FillMenu.c LTP_Find.c \
  60.         LTP_FixExtraLabel.c LTP_GetCommandWidth.c \
  61.         LTP_GetDisplayClip.c LTP_GlyphSetup.c LTP_HandleHistory.c \
  62.         LTP_HexEditRoutine.c LTP_ImageClass.c LTP_InitIText.c \
  63.         LTP_LayoutGadgets.c LTP_LayoutGroup.c LTP_LayoutMenu.c \
  64.         LTP_LevelGadget.c LTP_LevelImage.c LTP_MakeItem.c \
  65.         LTP_MakeMenu.c LTP_Memory.c LTP_MoveToWindow.c \
  66.         LTP_NewMenu.c LTP_PasswordEditRoutine.c LTP_PlaceGroups.c \
  67.         LTP_PopupClass.c LTP_PrintBoxLine.c LTP_PrintLabel.c \
  68.         LTP_RenderArrow.c LTP_RenderCircle.c LTP_Rescale.c \
  69.         LTP_ResetGroups.c LTP_RPortAttrs.c LTP_SearchKeys.c \
  70.         LTP_SelectKeys.c LTP_ShrinkMenu.c LTP_SizeDimensions.c \
  71.         LTP_Spread.c LTP_SPrintf.c LTP_Storage.c \
  72.         LTP_TabClass.c LT_Activate.c LT_Build.c \
  73.         LT_CreateHandle.c LT_DeleteHandle.c LT_DisposeMenu.c \
  74.         LT_FindMenuCommand.c LT_GetAttributes.c \
  75.         LT_GetCode.c LT_GetMenuItem.c LT_HandleInput.c \
  76.         LT_IMsg.c LT_InitExit.c LT_LabelWidth.c \
  77.         LT_LayoutMenus.c LT_LevelWidth.c LT_LockWindow.c \
  78.         LT_MenuControlTagList.c LT_New.c LT_NewMenuTagList.c \
  79.         LT_NewMenuTemplate.c LT_PressButton.c LT_Rebuild.c \
  80.         LT_Refresh.c LT_SetAttributes.c LT_ShowWindow.c \
  81.         LT_UpdateStrings.c \
  82.         gtlayout_lib.sfd \
  83.         SMakefile
  84.  
  85. OBJS =        gtlayout_romtag.o gtlayout_data.o gtlayout_lib.o \
  86.         LTP_AddGadgets.o LTP_AddHistory.o LTP_AdjustItemPosition.o \
  87.         LTP_AdjustMenuPosition.o LTP_Atol.o LTP_BackFillRoutine.o \
  88.         LTP_BitMap.o LTP_BlinkButton.o LTP_CheckGlyph.o \
  89.         LTP_Clone.o LTP_ConvertNum.o LTP_CorrectItemList.o \
  90.         LTP_CreateExtraObject.o LTP_CreateGadgets.o LTP_CreateMenuTagList.o \
  91.         LTP_CreateMenuTemplate.o LTP_CreateObjectNode.o LTP_DefaultEditRoutine.o \
  92.         LTP_DefaultHistoryHook.o LTP_Delay.o LTP_DeleteObjectNode.o \
  93.         LTP_DetermineSize.o LTP_Draw.o LTP_DrawBackFore.o \
  94.         LTP_DrawBox.o LTP_DrawGauge.o LTP_DrawGroup.o \
  95.         LTP_DrawIncrementer.o LTP_DrawPalette.o LTP_DrawPicker.o \
  96.         LTP_DrawPrevNext.o LTP_DrawTapeButton.o LTP_FillMenu.o \
  97.         LTP_Find.o LTP_FixExtraLabel.o  \
  98.         LTP_GetCommandWidth.o LTP_GetDisplayClip.o LTP_GlyphSetup.o \
  99.         LTP_HandleHistory.o LTP_HexEditRoutine.o LTP_ImageClass.o \
  100.         LTP_InitIText.o LTP_LayoutGadgets.o LTP_LayoutGroup.o \
  101.         LTP_LayoutMenu.o LTP_LevelGadget.o LTP_LevelImage.o \
  102.         LTP_MakeItem.o LTP_MakeMenu.o LTP_Memory.o \
  103.         LTP_MoveToWindow.o LTP_NewMenu.o LTP_PasswordEditRoutine.o \
  104.         LTP_PlaceGroups.o LTP_PopupClass.o LTP_PrintBoxLine.o \
  105.         LTP_PrintLabel.o LTP_RenderArrow.o LTP_RenderCircle.o \
  106.         LTP_Rescale.o LTP_ResetGroups.o LTP_RPortAttrs.o \
  107.         LTP_SearchKeys.o LTP_SelectKeys.o LTP_ShrinkMenu.o \
  108.         LTP_SizeDimensions.o LTP_Spread.o LTP_SPrintf.o \
  109.         LTP_Storage.o LTP_TabClass.o LT_Activate.o \
  110.         LT_Build.o LT_CreateHandle.o LT_DeleteHandle.o \
  111.         LT_DisposeMenu.o LT_FindMenuCommand.o \
  112.         LT_GetAttributes.o LT_GetCode.o LT_GetMenuItem.o \
  113.         LT_HandleInput.o LT_IMsg.o LT_InitExit.o \
  114.         LT_LabelWidth.o LT_LayoutMenus.o LT_LevelWidth.o \
  115.         LT_LockWindow.o LT_MenuControlTagList.o LT_New.o \
  116.         LT_NewMenuTagList.o LT_NewMenuTemplate.o LT_PressButton.o \
  117.         LT_Rebuild.o LT_Refresh.o LT_SetAttributes.o \
  118.         LT_ShowWindow.o LT_UpdateStrings.o
  119.  
  120. OBJS_LIB =    gtlayout_data.ol \
  121.         LTP_AddGadgets.ol LTP_AddHistory.ol LTP_AdjustItemPosition.ol \
  122.         LTP_AdjustMenuPosition.ol LTP_Atol.ol LTP_BackFillRoutine.ol \
  123.         LTP_BitMap.ol LTP_BlinkButton.ol LTP_CheckGlyph.ol \
  124.         LTP_Clone.ol LTP_ConvertNum.ol LTP_CorrectItemList.ol \
  125.         LTP_CreateExtraObject.ol LTP_CreateGadgets.ol LTP_CreateMenuTagList.ol \
  126.         LTP_CreateMenuTemplate.ol LTP_CreateObjectNode.ol LTP_DefaultEditRoutine.ol \
  127.         LTP_DefaultHistoryHook.ol LTP_Delay.ol LTP_DeleteObjectNode.ol \
  128.         LTP_DetermineSize.ol LTP_Draw.ol LTP_DrawBackFore.ol \
  129.         LTP_DrawBox.ol LTP_DrawGauge.ol LTP_DrawGroup.ol \
  130.         LTP_DrawIncrementer.ol LTP_DrawPalette.ol LTP_DrawPicker.ol \
  131.         LTP_DrawPrevNext.ol LTP_DrawTapeButton.ol LTP_FillMenu.ol \
  132.         LTP_Find.ol LTP_FixExtraLabel.ol  \
  133.         LTP_GetCommandWidth.ol LTP_GetDisplayClip.ol LTP_GlyphSetup.ol \
  134.         LTP_HandleHistory.ol LTP_HexEditRoutine.ol LTP_ImageClass.ol \
  135.         LTP_InitIText.ol LTP_LayoutGadgets.ol LTP_LayoutGroup.ol \
  136.         LTP_LayoutMenu.ol LTP_LevelGadget.ol LTP_LevelImage.ol \
  137.         LTP_MakeItem.ol LTP_MakeMenu.ol LTP_Memory.ol \
  138.         LTP_MoveToWindow.ol LTP_NewMenu.ol LTP_PasswordEditRoutine.ol \
  139.         LTP_PlaceGroups.ol LTP_PopupClass.ol LTP_PrintBoxLine.ol \
  140.         LTP_PrintLabel.ol LTP_RenderArrow.ol LTP_RenderCircle.ol \
  141.         LTP_Rescale.ol LTP_ResetGroups.ol LTP_RPortAttrs.ol \
  142.         LTP_SearchKeys.ol LTP_SelectKeys.ol LTP_ShrinkMenu.ol \
  143.         LTP_SizeDimensions.ol LTP_Spread.ol LTP_SPrintf.ol \
  144.         LTP_Storage.ol LTP_TabClass.ol LT_Activate.ol \
  145.         LT_Build.ol LT_CreateHandle.ol LT_DeleteHandle.ol \
  146.         LT_DisposeMenu.ol LT_FindMenuCommand.ol \
  147.         LT_GetAttributes.ol LT_GetCode.ol LT_GetMenuItem.ol \
  148.         LT_HandleInput.ol LT_IMsg.ol LT_InitExit.ol \
  149.         LT_LabelWidth.ol LT_LayoutMenus.ol LT_LevelWidth.ol \
  150.         LT_LockWindow.ol LT_MenuControlTagList.ol LT_New.ol \
  151.         LT_NewMenuTagList.ol LT_NewMenuTemplate.ol LT_PressButton.ol \
  152.         LT_Rebuild.ol LT_Refresh.ol LT_SetAttributes.ol \
  153.         LT_ShowWindow.ol LT_UpdateStrings.ol
  154.  
  155. PROTOS =    gtlayout_lib.c \
  156.         LTP_AddGadgets.c LTP_AddHistory.c LTP_AdjustItemPosition.c \
  157.         LTP_AdjustMenuPosition.c LTP_Atol.c LTP_BackFillRoutine.c LTP_BitMap.c \
  158.         LTP_BlinkButton.c LTP_CheckGlyph.c LTP_Clone.c LTP_ConvertNum.c \
  159.         LTP_CorrectItemList.c LTP_CreateExtraObject.c LTP_CreateGadgets.c LTP_CreateMenuTagList.c \
  160.         LTP_CreateMenuTemplate.c LTP_CreateObjectNode.c LTP_DefaultEditRoutine.c LTP_DefaultHistoryHook.c \
  161.         LTP_Delay.c LTP_DeleteObjectNode.c LTP_DetermineSize.c LTP_Draw.c \
  162.         LTP_DrawBackFore.c LTP_DrawBox.c LTP_DrawGauge.c LTP_DrawGroup.c \
  163.         LTP_DrawIncrementer.c LTP_DrawPalette.c LTP_DrawPicker.c LTP_DrawPrevNext.c \
  164.         LTP_DrawTapeButton.c LTP_FillMenu.c LTP_Find.c LTP_FixExtraLabel.c \
  165.         LTP_GetCommandWidth.c LTP_GetDisplayClip.c LTP_GlyphSetup.c LTP_HandleHistory.c \
  166.         LTP_HexEditRoutine.c LTP_ImageClass.c LTP_InitIText.c LTP_LayoutGadgets.c \
  167.         LTP_LayoutGroup.c LTP_LayoutMenu.c LTP_LevelGadget.c LTP_LevelImage.c \
  168.         LTP_MakeItem.c LTP_MakeMenu.c LTP_Memory.c LTP_MoveToWindow.c \
  169.         LTP_NewMenu.c LTP_PasswordEditRoutine.c LTP_PlaceGroups.c LTP_PopupClass.c \
  170.         LTP_PrintBoxLine.c LTP_PrintLabel.c LTP_RenderArrow.c LTP_RenderCircle.c \
  171.         LTP_Rescale.c LTP_ResetGroups.c LTP_RPortAttrs.c LTP_SearchKeys.c \
  172.         LTP_SelectKeys.c LTP_ShrinkMenu.c LTP_SizeDimensions.c LTP_Spread.c \
  173.         LTP_SPrintf.c LTP_Storage.c LTP_TabClass.c LT_Activate.c \
  174.         LT_Build.c LT_CreateHandle.c LT_DeleteHandle.c LT_DisposeMenu.c \
  175.         LT_FindMenuCommand.c LT_GetAttributes.c LT_GetCode.c LT_GetMenuItem.c \
  176.         LT_HandleInput.c LT_IMsg.c LT_InitExit.c LT_LabelWidth.c \
  177.         LT_LayoutMenus.c LT_LevelWidth.c LT_LockWindow.c LT_MenuControlTagList.c \
  178.         LT_New.c LT_NewMenuTagList.c LT_NewMenuTemplate.c LT_PressButton.c \
  179.         LT_Rebuild.c LT_Refresh.c LT_SetAttributes.c LT_ShowWindow.c \
  180.         LT_UpdateStrings.c
  181.  
  182. ###############################################################################
  183.  
  184. gtlayout.lib:        $(OBJS_LIB)
  185.             oml $@ r $(OBJS_LIB)
  186.  
  187. ###############################################################################
  188.  
  189. gtlayout.library:    $(OBJS)
  190.             slink with <<
  191.                 from $(OBJS)
  192.                 to $@
  193.                 lib $(LIBS)
  194.                 $(LFLAGS)
  195.             <
  196.  
  197. gtlayout_romtag.o:    gtlayout_romtag.a gtlayout.library_rev.i
  198.  
  199. gtlayout_lib.o:        gtlayout_lib.c
  200.             sc gtlayout_lib.c $(CFLAGS) cpu=any
  201.  
  202. $(GSTFILE):        gtlayout_preinclude.c gtlayout_includes.h
  203.             gst $@ unload
  204.             sc $(CFLAGS) nogst noobjname makegst=$@ gtlayout_preinclude.c
  205.  
  206. ###############################################################################
  207.  
  208. clean:
  209.     @-delete quiet \#?.o(l|%)
  210.